package kku.cs.fgl.transition;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

public class RotateMove extends Move {
    
	public RotateMove() {
	}

	public RotateMove(float tx, float ty, int mode) {
		super(tx, ty, mode);
	}

	public RotateMove(int duration, float tx, float ty, int mode) {
		super(duration, tx, ty, mode);
	}
    float a=0;
	public void update(StateBasedGame game, GameContainer container, int delta) throws SlickException {
		super.update(game, container, delta);
		if(scene1!=null){
			a+=0.5f*delta;
			scene1.setRotation(a);
		}
	}
}
